package com.feri.rbacsys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feri.rbacsys.entity.UserRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 19.用户角色关系表(SysUserRole)表数据库访问层
 *
 * @author makejava
 * @since 2023-03-26 10:40:28
 */
public interface UserRoleDao extends BaseMapper<UserRole> {

    // 修改用户角色
    @Update("update t_user_role set role_id=#{rid} where user_id=#{uid}")
    int udpateByUid(@Param("uid") int uid,@Param("rid") int rid);
}

